package com.haochang.chunkvod.model.order;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.haochang.chunkvod.model.order.query.GroupGoodsInfo;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 *@author qintao
 *created at 2016/6/12 12:49
 * 点餐食物
 */

@DatabaseTable(tableName = "tb_goods")
public class GoodsInfo implements Serializable
{
	@DatabaseField(columnName = "id", generatedId = true)
	private int id;
	@DatabaseField(columnName = "room_id")
	private String roomId = "";
	@DatabaseField(columnName = "bill_id")
	private String BillId = "";
	@DatabaseField(columnName = "menu_id")
	private String menuId = "";
	@DatabaseField(columnName = "goods_id")
	private String goodsId = "";
	@DatabaseField(columnName = "goods_name")
	private String goodsName = "";
	@DatabaseField(columnName = "order_num")
	private int orderNum = 0;
	@DatabaseField(columnName = "price")
	private int price;
	@DatabaseField(columnName = "unit")
	private String unit = "";
	@DatabaseField(columnName = "flavor")
	private String flavor = "";
	@DatabaseField(columnName = "standard_types")
	private String standard_types = "";
	@DatabaseField(columnName = "standard")
	private String standard = "";
	@DatabaseField(columnName = "is_give")
	private boolean is_give = false;//增送模式
	@DatabaseField(columnName = "is_present")
	private boolean is_present = false;//增送类别
	@DatabaseField(columnName = "goods_detial")
	private String goodsDetial = "";
	@DatabaseField(columnName = "taste_types")
	private String taste_types = "";
	@DatabaseField(columnName = "goods_type")
	private int goods_type = 0; //0 单品,1套餐,2活动
	@DatabaseField(columnName = "order_time")
	private String orderTime = "";
	@DatabaseField(columnName = "charging_room_type_id")
	private String charging_room_type_id = ""; //计费房型id，活动必须要存入，单品或者套餐忽略
	private int surplus;
	@DatabaseField(columnName = "decrease_time")
	private int decrease_time;//活动减免时间
	private int decrease_value;//活动减免价值
	private int output_status;//是否出单 0|1未划单，2已划单
	private int is_outposition;//0无出品点，1有出品点
	private String bundles = "";//活动里面的套餐
	private String retails = "";//套餐里面的单品or活动里面的单品
	private String d_id_key = "";
	private String d_id_value = "";
	private String parentDIdValue = "";
	private boolean is_back;//是否退单
	private int backNum;//已退单数量
	private boolean isShowOperate;//显示操作按钮行
	private int cashTotal = 0;//小计
	private List<FoodInfo> foodInfoList = new ArrayList<FoodInfo>();
	private List<FoodDetailInfo> foodDetailInfoList = new ArrayList<FoodDetailInfo>();
	private List<GroupGoodsInfo> groupGoodsInfoList = new ArrayList<GroupGoodsInfo>();
	private int discountPrice;//优惠价
	private int originalPrice;
	private int restQuantity;//用这个值判断商品是否还可以退单,大于0 可以，小于等于0 就不行了
	private String bill_promotion_id = "";//是否为优惠活动内商品
	private String operateTypeId = "";//商品运营小类id
	private boolean isExpand = false;//是否展开

	public int getRestQuantity()
	{
		return restQuantity;
	}

	public void setRestQuantity(int restQuantity)
	{
		this.restQuantity = restQuantity;
	}

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public void setRoomId(String roomId)
	{
		this.roomId = roomId;
	}

	public String getRoomId()
	{
		return roomId;
	}

	public String getBillId()
	{
		return BillId;
	}

	public void setBillId(String billId)
	{
		BillId = billId;
	}

	public String getGoodsId()
	{
		return goodsId;
	}

	public void setGoodsId(String goodsId)
	{
		this.goodsId = goodsId;
	}

	public String getGoodsName()
	{
		return goodsName;
	}

	public void setGoodsName(String goodsName)
	{
		this.goodsName = goodsName;
	}

	public int getOrderNum()
	{
		return orderNum;
	}

	public void setOrderNum(int orderNum)
	{
		this.orderNum = orderNum;
	}

	public int getPrice()
	{
		return price;
	}

	public void setPrice(int price)
	{
		this.price = price;
	}

	public int getOriginalPrice()
	{
		return originalPrice;
	}

	public void setOriginalPrice(int originalPrice)
	{
		this.originalPrice = originalPrice;
	}

	public String getUnit()
	{
		return unit;
	}

	public void setUnit(String unit)
	{
		this.unit = unit;
	}

	public int getSurplus()
	{
		return surplus;
	}

	public void setSurplus(int surplus)
	{
		this.surplus = surplus;
	}

	public String getFlavor()
	{
		return flavor;
	}

	public void setFlavor(String flavor)
	{
		this.flavor = flavor;
	}

	public String getMenuId()
	{
		return menuId;
	}

	public void setMenuId(String menuId)
	{
		this.menuId = menuId;
	}

	public boolean is_give()
	{
		return is_give;
	}

	public void setIs_give(boolean is_give)
	{
		this.is_give = is_give;
	}

	public String getGoodsDetial()
	{
		return goodsDetial;
	}

	public void setGoodsDetial(String goodsDetial)
	{
		this.goodsDetial = goodsDetial;
	}

	public String getTaste_types()
	{
		return taste_types;
	}

	public void setTaste_types(String taste_types)
	{
		this.taste_types = taste_types;
	}

	public int getDecrease_time()
	{
		return decrease_time;
	}

	public void setDecrease_time(int decrease_time)
	{
		this.decrease_time = decrease_time;
	}

	public int getDecrease_value()
	{
		return decrease_value;
	}

	public void setDecrease_value(int decrease_value)
	{
		this.decrease_value = decrease_value;
	}

	public String getOrderTime()
	{
		return orderTime;
	}

	public void setOrderTime(String orderTime)
	{
		this.orderTime = orderTime;
	}

	public int getOutput_status()
	{
		return output_status;
	}

	public void setOutput_status(int output_status)
	{
		this.output_status = output_status;
	}

	public int getIs_outposition()
	{
		return is_outposition;
	}

	public void setIs_outposition(int is_outposition)
	{
		this.is_outposition = is_outposition;
	}

	public String getBundles()
	{
		return bundles;
	}

	public void setBundles(String bundles)
	{
		this.bundles = bundles;
	}

	public String getRetails()
	{
		return retails;
	}

	public void setRetails(String retails)
	{
		this.retails = retails;
	}

	public String getD_id_key()
	{
		return d_id_key;
	}

	public void setD_id_key(String d_id_key)
	{
		this.d_id_key = d_id_key;
	}

	public String getD_id_value()
	{
		return d_id_value;
	}

	public void setD_id_value(String d_id_value)
	{
		this.d_id_value = d_id_value;
	}

	public boolean is_back()
	{
		return is_back;
	}

	public void setIs_back(boolean is_back)
	{
		this.is_back = is_back;
	}

	public int getBackNum()
	{
		return backNum;
	}

	public void setBackNum(int backNum)
	{
		this.backNum = backNum;
	}

	public boolean isShowOperate()
	{
		return isShowOperate;
	}

	public void setShowOperate(boolean showOperate)
	{
		isShowOperate = showOperate;
	}

	public List<FoodInfo> getFoodInfoList()
	{
		return foodInfoList;
	}

	public void setFoodInfoList(List<FoodInfo> foodInfoList)
	{
		this.foodInfoList = foodInfoList;
	}

	public List<FoodDetailInfo> getFoodDetailInfoList()
	{
		return foodDetailInfoList;
	}

	public void setFoodDetailInfoList(List<FoodDetailInfo> foodDetailInfoList)
	{
		this.foodDetailInfoList = foodDetailInfoList;
	}

	public String getStandard()
	{
		return standard;
	}

	public void setStandard(String standard)
	{
		this.standard = standard;
	}

	public String getStandard_types()
	{
		return standard_types;
	}

	public void setStandard_types(String standard_types)
	{
		this.standard_types = standard_types;
	}

	/**
	 * //0 单品；1套餐；2活动
	 * @return
	 */
	public int getGoods_type()
	{
		return goods_type;
	}

	public String getCharging_room_type_id()
	{
		return charging_room_type_id;
	}

	public void setCharging_room_type_id(String charging_room_type_id)
	{
		this.charging_room_type_id = charging_room_type_id;
	}

	public String getParentDIdValue()
	{
		return parentDIdValue;
	}

	public void setParentDIdValue(String parentDIdValue)
	{
		this.parentDIdValue = parentDIdValue;
	}

	/**
	 * //0 单品；1套餐；2活动
	 * @return
	 */
	public void setGoods_type(int goods_type)
	{
		this.goods_type = goods_type;
	}

	public int getCashTotal()
	{
		return cashTotal;
	}

	public void setCashTotal(int cashTotal)
	{
		this.cashTotal = cashTotal;
	}

	public List<GroupGoodsInfo> getGroupGoodsInfoList()
	{
		return groupGoodsInfoList;
	}

	public void setGroupGoodsInfoList(List<GroupGoodsInfo> groupGoodsInfoList)
	{
		this.groupGoodsInfoList = groupGoodsInfoList;
	}

	public String getBill_promotion_id()
	{
		return bill_promotion_id;
	}

	public void setBill_promotion_id(String bill_promotion_id)
	{
		this.bill_promotion_id = bill_promotion_id;
	}

	public int getDiscountPrice()
	{
		return discountPrice;
	}

	public void setDiscountPrice(int discountPrice)
	{
		this.discountPrice = discountPrice;
	}

	public String getOperateTypeId()
	{
		return operateTypeId;
	}

	public void setOperateTypeId(String operateTypeId)
	{
		this.operateTypeId = operateTypeId;
	}

	public boolean isExpand()
	{
		return isExpand;
	}

	public void setExpand(boolean expand)
	{
		isExpand = expand;
	}

	public boolean is_present() {
		return is_present;
	}

	public void setIs_present(boolean is_present) {
		this.is_present = is_present;
	}
}
